package com.learning;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.support.AbstractApplicationContext;

/**
 * @author jukg
 * @date 2023/06/08 14:44
 * @description
 */
@SpringBootApplication
public class StartApplication {

    private static final Logger logger = LoggerFactory.getLogger(StartApplication.class);

    public static void main(String[] args) {
        System.setProperty("log.path", "G:/XY/logs/pp");
        System.out.println("===========" + System.getProperty("log.test"));
        logger.info("start .....");
        SpringApplication.run(StartApplication.class, args);
        //WordProperties p = context.getBean(WordProperties.class);
        logger.info("success .....");
        logger.error("error success.........");
    }
}
